home *** CD-ROM | disk | FTP | other *** search
- global gSimObject, gTruckObject
-
- on mouseDown
- if the status of gTruckObject <> #animating then
- if (the demoFlag of gSimObject <> 1) and (the startSimFlag of gSimObject = 1) then
- if buttonHandler() = 1 then
- startBuffering()
- hideInvisibleButtons(gSimObject)
- set the invisibleButtonList of gSimObject to [0, 0, 0, 0, 0, 0, 0, 0]
- set the demoFlag of gSimObject to 1
- puppetSimButtons()
- set the mouseDownScript to "interruptDemo"
- flushBuffer()
- go(the frame)
- end if
- end if
- end if
- end
-